package com.dj.repository;

import com.dj.bean.PatientBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author cyf
 * @description
 * @create 2018-06-27 13:45
 **/
public interface PatientRespository extends JpaRepository<PatientBean, String>, JpaSpecificationExecutor<PatientBean>{

    // jpa 方法名 命名是有规范的

    List<PatientBean> findByName(String name);

    List<PatientBean> findByNameLike(String name);

}
